package com.sunc.demo.item.controller;

import com.sunc.demo.item.config.JdbcConfigBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/config")
public class ConfigController {

    @Autowired
    private JdbcConfigBean jdbcConfigBean;


    @GetMapping("/test")
    public String test(){
        return jdbcConfigBean.toString();
    }

}
